package service;

import dao.AdminOrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.Orderlist;

import java.util.List;

@Service("adminOrderService")
@Transactional
public class AdminOrderService {
    @Autowired
    private AdminOrderDao adminOrderDao;
    public List<Orderlist> sOOL(Integer oid){return adminOrderDao.selectOneOrderList(oid);}
    public List<Orderlist> sAOL(){return adminOrderDao.selectAllOrderList();}
    public int dOL(Integer oid){return adminOrderDao.deleteOrderList(oid);}
}
